package com.group7.mall.convert;

import com.group7.mall.dto.MessageDto;
import com.group7.mall.entity.TbMessage;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MessageConverter {

    MessageConverter INSTANCE = Mappers.getMapper(MessageConverter.class);

    List<MessageDto> convertTbMessageListToMessageDtoList(List<TbMessage> tbMessageList);

}
